package org.linlinjava.litemall.admin.web2.goods.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.linlinjava.litemall.core.util.Util;
import org.linlinjava.litemall.db.domain.TCatalog;

import java.util.List;

@ApiModel
public class GReq2 {

    @ApiModelProperty("id")
    private Integer id;
    @ApiModelProperty("名称")
    private String name;
    @ApiModelProperty("子标题")
    private String subName;
    @ApiModelProperty("微信显示")
    private Boolean wxShow;
    @ApiModelProperty("直营店授权")
    private Boolean directShopAuth;
    @ApiModelProperty("加盟店授权")
    private Boolean franshiseShopAuth;
    @ApiModelProperty("特殊加盟店授权")
    private Boolean franshise2ShopAuth;
    @ApiModelProperty("排序")
    private Integer sort;
    @ApiModelProperty("父分类id")
    private Integer pId;
    @ApiModelProperty("展示商品数")
    private Integer showGoodsNum;

    public static TCatalog getEntity(GReq2 req) {
        TCatalog entity = new TCatalog();
        Util.copy(req, entity);
        entity.setDeleted(Boolean.FALSE);
        return entity;
    }

    public GReq2() {
    }


    public Integer getShowGoodsNum() {
        return showGoodsNum;
    }

    public void setShowGoodsNum(Integer showGoodsNum) {
        this.showGoodsNum = showGoodsNum;
    }

    public String getSubName() {
        return subName;
    }

    public void setSubName(String subName) {
        this.subName = subName;
    }

    public Integer getpId() {
        return pId;
    }

    public void setpId(Integer pId) {
        this.pId = pId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Boolean getWxShow() {
        return wxShow;
    }

    public void setWxShow(Boolean wxShow) {
        this.wxShow = wxShow;
    }

    public Boolean getDirectShopAuth() {
        return directShopAuth;
    }

    public void setDirectShopAuth(Boolean directShopAuth) {
        this.directShopAuth = directShopAuth;
    }

    public Boolean getFranshiseShopAuth() {
        return franshiseShopAuth;
    }

    public void setFranshiseShopAuth(Boolean franshiseShopAuth) {
        this.franshiseShopAuth = franshiseShopAuth;
    }

    public Boolean getFranshise2ShopAuth() {
        return franshise2ShopAuth;
    }

    public void setFranshise2ShopAuth(Boolean franshise2ShopAuth) {
        this.franshise2ShopAuth = franshise2ShopAuth;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }
}
